#include<stdio.h>
main()
{
    long term=1,sum=0;
    int i;
    for(i=1;i<=10;i++)
    {
        term=term*i;
        sum=sum+term;
    }
    printf("1!+2!+...+10!=%ld\n",sum);
}
